import static org.junit.Assert.*;
import org.junit.*;

public class CalculatorAppTest 
{
	CalculatorApp obj = new CalculatorApp();
	
	@BeforeClass
	public static void testM3()
	{
		System.out.println("Before Class");
	}
	
	@Before
	public void testM1()
	{
		System.out.println("Before Testcase");
	}
	
	@After
	public void testM2()
	{
		System.out.println("After TestCase");
	}	
	
	@AfterClass
	public static void testM4()
	{
		System.out.println("After Class");
	}
	
	
	public void sampleMethod()
	{
		System.out.println("sample method");
	}
	
	@Test
	public void testAdd() 
	{
		int res = obj.addMethod(5, 0);
		assertEquals(5,res);
		sampleMethod();
		//res=obj.addMethod(3, 4);
		//assertEquals(6,res);
	}
	@Ignore
	@Test
	public void testSub() 
	{
		
	}
	@Ignore
	@Test
	public void testMul() 
	{
		
	}
	@Ignore
	@Test
	public void testDiv() 
	{
		double res = obj.divideMethod(2, 3);
		assertEquals(0.9,res,0.1);
	}
}
